import { reqGetArtistlist } from '@/api/obtainlist'
import { GET_ARTIST_LIST } from './simi'

export default {
  namespaced: true,
  state: {
    simiList: {}
  },
  actions: {
    async getArtistlist({ commit }) {
    //   console.log(111)/
      const  acquainted  = await reqGetArtistlist()
    //   console.log(acquainted)
      commit('GET_ARTIST_LIST', acquainted)
    //   console.log(111)
    //   console.log(222)
    }
  },
  mutations: {
    [GET_ARTIST_LIST](state, acquainted) {
      state.simiList = acquainted.data.list
    //   console.log(state.simiList)
    //   console.log(111)
    }
  }
}
